package wnhz.com.business.freeshop.activity.fourthfree;

import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.Message;
import android.view.View;
import android.view.WindowManager;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import wnhz.com.business.R;
import wnhz.com.business.base.MyBaseActivity;
import wnhz.com.business.impl.ActionBarClickListener;
import wnhz.com.business.view.TranslucentActionBarW;

public class ApplyActivity extends MyBaseActivity implements ActionBarClickListener {

    @BindView(R.id.actionbar)
    TranslucentActionBarW actionbar;
    @BindView(R.id.et_name)
    EditText etName;
    @BindView(R.id.ll_name_f)
    LinearLayout llNameF;
    @BindView(R.id.et_name_f)
    EditText etNameF;
    @BindView(R.id.ll_phone_f)
    LinearLayout llPhoneF;
    @BindView(R.id.et_storename_f)
    EditText etStorenameF;
    @BindView(R.id.ll_storename_f)
    LinearLayout llStorenameF;
    @BindView(R.id.et_storearea_f)
    EditText etStoreareaF;
    @BindView(R.id.ll_storearea_f)
    LinearLayout llStoreareaF;
    @BindView(R.id.et_storeareatrue_f)
    EditText etStoreareatrueF;
    @BindView(R.id.ll_storeareatrue_f)
    LinearLayout llStoreareatrueF;
    @BindView(R.id.tv_next_f)
    TextView tvNextF;



    public static Intent createIntent(Context context) {
        Intent intent = new Intent(context, ApplyActivity.class);
        return intent;
    }
    @Override
    protected void handleMsg(Message msg) {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_apply);
        ButterKnife.bind(this);
        actionbar.setData("申请成为商家", R.drawable.ic_left_back, null, 0, null, 0, this);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            this.getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
            //改变状态栏颜色
            this.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
            actionbar.setStatusBarHeight(getStatusBarHeight());
        }
    }

    @Override
    public void onLeftClick() {
        finish();
    }

    @Override
    public void onRightClick() {

    }

    @Override
    public void onEditTextClick() {

    }

    @OnClick(R.id.tv_next_f)
    public void onViewClicked() {
        startActivity(NextActivity.createIntent(this));
    }
}
